package com.test.cxf.spring.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.test.cxf.spring.HelloWorld;

public class CXFClient {

	public static void main(String[] args) {
		
		ApplicationContext ac = new ClassPathXmlApplicationContext("client.xml");
		
		HelloWorld client = (HelloWorld)ac.getBean("client");
		
		System.out.println(client.getClass());
		
		System.out.println(client.getClass().getSuperclass());
		
		String result = client.sayHello("zhangsan");
		
		System.out.println(result);
	}
	
}
